package ssm.blog.entity;

import java.util.Date;

public class Blog {
    private Integer id;

    private Integer statu;

    private String title;

    private String sign;

    private String owner_name;

    private Integer owner_id;

    private Integer type_id;

    private Date releas_date;

    private Integer likenum;

    private Integer commentsnum;

    private String summary;

    private String img_url;

    private String content;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStatu() {
        return statu;
    }

    public void setStatu(Integer statu) {
        this.statu = statu;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign == null ? null : sign.trim();
    }

    public String getOwner_name() {
        return owner_name;
    }

    public void setOwner_name(String owner_name) {
        this.owner_name = owner_name == null ? null : owner_name.trim();
    }

    public Integer getOwner_id() {
        return owner_id;
    }

    public void setOwner_id(Integer owner_id) {
        this.owner_id = owner_id;
    }

    public Integer getType_id() {
        return type_id;
    }

    public void setType_id(Integer type_id) {
        this.type_id = type_id;
    }

    public Date getReleas_date() {
        return releas_date;
    }

    public void setReleas_date(Date releas_date) {
        this.releas_date = releas_date;
    }

    public Integer getLikenum() {
        return likenum;
    }

    public void setLikenum(Integer likenum) {
        this.likenum = likenum;
    }

    public Integer getCommentsnum() {
        return commentsnum;
    }

    public void setCommentsnum(Integer commentsnum) {
        this.commentsnum = commentsnum;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary == null ? null : summary.trim();
    }

    public String getImg_url() {
        return img_url;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url == null ? null : img_url.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", statu=" + statu +
                ", title='" + title + '\'' +
                ", sign='" + sign + '\'' +
                ", owner_name='" + owner_name + '\'' +
                ", owner_id=" + owner_id +
                ", type_id=" + type_id +
                ", releas_date=" + releas_date +
                ", likenum=" + likenum +
                ", commentsnum=" + commentsnum +
                ", summary='" + summary + '\'' +
                ", img_url='" + img_url + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}